package lab02.test23;
/**
 * Created by 12442 on 2017/11/1.
 */

import java.util.Calendar;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Calendar time=Calendar.getInstance();
        Scanner scan=new Scanner(System.in);
        int Year,Month,Day;
        System.out.print("年：");
        Year=scan.nextInt();
        System.out.print("月：");
        Month=scan.nextInt();
        System.out.print("日：");
        Day=scan.nextInt();
        time.set(Year,Month-1,Day);
        int Day1=time.get(Calendar.DAY_OF_WEEK);
        System.out.println("星期"+(Day-1));
    }
}
